package jtk.project4.fleet.field;

import java.awt.FlowLayout;

import nl.coderight.jazz.form.FormHeader;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.button.PushButton;

public class ButtonEastField extends GroupControl{

	private PushButton addLocationButton;
	private PushButton addCategoryButton;
	private PushButton editButton;
	private PushButton deleteButton;
	private PushButton helpButton;
	private PushButton closeButton;
	
	public ButtonEastField(String bindID){
		//setTitle("header.DriverLicense");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		
		addLocationButton = new PushButton("addLocationAction");
		addCategoryButton = new PushButton("addCategoryAction");
		editButton = new PushButton("editAction");
		deleteButton = new PushButton("deleteAction");
		helpButton = new PushButton("helpAction");
		closeButton = new PushButton("closeAction");
	}
	
	private void createLayout() {
		setLayout(new FormLayout())
	
		.addField(addLocationButton)
		.addRow()
		.addField(addCategoryButton)
		.addRow()
		.addField(editButton)
		.addRow()
		.addField(deleteButton)
		.addRow()
		.addField(helpButton)
		.addRow()
		.addField(closeButton)
		;
	}
	

}



